from shuogg import file_util
import os


def del_quick(*suffixs):
    """
    删除当前文件夹里面的x后缀文件
    eg: del_quick('.png', '.gif', '.jpg') # 删除图片
    """
    if len(suffixs) == 0:
        return
    paths = []
    for s in suffixs:
        paths += file_util.get_files_fullpath_curdir(s)
    for p in paths:
        os.remove(p)
        print('Delete ' + p)


def del_img():
    del_quick('.png', '.gif', '.jpg')


if __name__ == '__main__':
    # del_img()
